/*
* @Author: wanghongfucoder
* @Date:   2017-08-17 23:27:29
* @Last Modified by:   w1583
* @Last Modified time: 2017-08-17 23:27:29
*/

#include <stdio.h>
#include <string.h>
int main() {

	char word[100];
	scanf("%s",word);
	int len=strlen(word);
	for (int i = 0; i < len; ++i)
	{
		int ok=1;
		for (int j=i;j<len;j++)
		{
			if (word[j]!=word[j%i])
			{
				ok=0;
				break;
			}
		}
		if (ok)
		{
			printf("%d\n",i);
			break;
		}
	}
    return 0;
}